home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / tool / ugoku / src / vdsys / ivdorg.c < prev    next >
C/C++ Source or Header  |  1994-11-16  |  6KB  |  277 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    orgDialogId ;
  9. extern int    orgMesId[8] ;
  10. extern int    orgOkBtnId ;
  11. extern int    orgOkchk() ;
  12. extern int    orgCanBtnId ;
  13. extern int    orgSubDialogId ;
  14. extern int    orgFrameNumId ;
  15. extern int    orgSoundNumId ;
  16. extern int    orgSoundSet() ;
  17. extern int    orgSoundBtnId ;
  18. extern int    orgSoundwriteOK() ;
  19.  
  20. #define ALIGN    4
  21. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  22.  
  23. /*    MMI_init 用データ    */
  24.  
  25. /*    ヘッダ    */
  26.  
  27. MMIINIT    initDataIVDORG = { "MmiInit",  15, 0 } ;
  28.  
  29. /* orgDialogId */
  30.  
  31. static MMIPACKET d001 = {    &orgDialogId,
  32.                             NULL,
  33.                             &MJ_ALERTL40,
  34.                             OFFSET(ALERTL40),
  35.                             MS_NONE
  36.                         } ;
  37. static ALERTL40    d001d = {    MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
  38.                              464, 148, 623, 331, 8, 4, 8,
  39.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  40.                             NULL,   0,   0,
  41.                                0,   0,   0,   0
  42.                         } ;
  43.  
  44. /* orgMesId[0] */
  45.  
  46. static MMIPACKET d002 = {    &orgMesId[0],
  47.                             &orgDialogId,
  48.                             &MJ_MSGL40,
  49.                             OFFSET(MSGL40),
  50.                             MS_NONE
  51.                         } ;
  52. static MSGL40    d002d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  53.                              481, 151, 564, 167, 8,15, 8,
  54.                             MS_NONEL40,
  55.                             "V00再 生",
  56.                                1,  12,  12,
  57.                             MS_BOLDL40,
  58.                                0,   0
  59.                         } ;
  60.  
  61. /* orgOkBtnId */
  62.  
  63. static MMIPACKET d003 = {    &orgOkBtnId,
  64.                             &orgDialogId,
  65.                             &MJ_DBUTTONL40,
  66.                             OFFSET(DBUTTONL40),
  67.                             MS_NONE
  68.                         } ;
  69. static DBUTTONL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  70.                              480, 301, 537, 324,12, 4, 8,
  71.                             MS_PANELL40 | MS_FRAMEL40,
  72.                             orgOkchk,
  73.                             0x8012
  74.                         } ;
  75.  
  76. /* orgCanBtnId */
  77.  
  78. static MMIPACKET d004 = {    &orgCanBtnId,
  79.                             &orgDialogId,
  80.                             &MJ_DBUTTONL40,
  81.                             OFFSET(DBUTTONL40),
  82.                             MS_NONE
  83.                         } ;
  84. static DBUTTONL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  85.                              551, 301, 608, 324,10, 4, 8,
  86.                             MS_PANELL40 | MS_FRAMEL40,
  87.                             orgOkchk,
  88.                             0x8011
  89.                         } ;
  90.  
  91. /* orgMesId[4] */
  92.  
  93. static MMIPACKET d005 = {    &orgMesId[4],
  94.                             &orgDialogId,
  95.                             &MJ_MSGL40,
  96.                             OFFSET(MSGL40),
  97.                             MS_NONE
  98.                         } ;
  99. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  100.                              488, 305, 531, 321,10,15, 8,
  101.                             MS_NONEL40,
  102.                             "再  生",
  103.                                1,  12,  12,
  104.                             MS_NONEL40,
  105.                                0,   0
  106.                         } ;
  107.  
  108. /* orgMesId[5] */
  109.  
  110. static MMIPACKET d006 = {    &orgMesId[5],
  111.                             &orgDialogId,
  112.                             &MJ_MSGL40,
  113.                             OFFSET(MSGL40),
  114.                             MS_NONE
  115.                         } ;
  116. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  117.                              558, 305, 601, 321,10,15, 8,
  118.                             MS_NONEL40,
  119.                             "取  消",
  120.                                1,  12,  12,
  121.                             MS_NONEL40,
  122.                                0,   0
  123.                         } ;
  124.  
  125. /* orgSubDialogId */
  126.  
  127. static MMIPACKET d007 = {    &orgSubDialogId,
  128.                             &orgDialogId,
  129.                             &MJ_DIALOGL40,
  130.                             OFFSET(DIALOGL40),
  131.                             MS_NONE
  132.                         } ;
  133. static DIALOGL40    d007d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  134.                              480, 169, 607, 294, 8, 4, 8,
  135.                             MS_DFRAMEL40 | MS_FRAMEL40,
  136.                             NULL,   0,   0
  137.                         } ;
  138.  
  139. /* orgMesId[3] */
  140.  
  141. static MMIPACKET d008 = {    &orgMesId[3],
  142.                             &orgSubDialogId,
  143.                             &MJ_MSGL40,
  144.                             OFFSET(MSGL40),
  145.                             MS_NONE
  146.                         } ;
  147. static MSGL40    d008d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  148.                              491, 178, 550, 195, 0,15, 8,
  149.                             MS_NONEL40,
  150.                             "フレーム数",
  151.                                1,  12,  12,
  152.                             MS_NONEL40,
  153.                                0,   0
  154.                         } ;
  155.  
  156. /* orgFrameNumId */
  157.  
  158. static MMIPACKET d009 = {    &orgFrameNumId,
  159.                             &orgSubDialogId,
  160.                             &MJ_NUMBOXL40,
  161.                             OFFSET(NUMBOXL40),
  162.                             MS_NONE
  163.                         } ;
  164. static NUMBOXL40    d009d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_FIXEDL40,
  165.                              552, 179, 595, 195, 8, 4, 8,
  166.                             MS_NONEL40,
  167.                             0,
  168.                                1,  12,  12,
  169.                             MS_NONEL40,
  170.                                0,   0,
  171.                                0,   0,9999,   1,   0,
  172.                              263, 264
  173.                         } ;
  174.  
  175. /* orgSoundNumId */
  176.  
  177. static MMIPACKET d010 = {    &orgSoundNumId,
  178.                             &orgSubDialogId,
  179.                             &MJ_NUMBOXL40,
  180.                             OFFSET(NUMBOXL40),
  181.                             MS_NONE
  182.                         } ;
  183. static NUMBOXL40    d010d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  184.                              488, 264, 548, 283, 8, 4, 8,
  185.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  186.                             orgSoundSet,
  187.                                1,  12,  12,
  188.                             MS_NONEL40,
  189.                                0,   0,
  190.                                0,   0,9999,   1,   0,
  191.                              263, 264
  192.                         } ;
  193.  
  194. /* orgSoundBtnId */
  195.  
  196. static MMIPACKET d011 = {    &orgSoundBtnId,
  197.                             &orgSubDialogId,
  198.                             &MJ_DBUTTONL40,
  199.                             OFFSET(DBUTTONL40),
  200.                             MS_NONE
  201.                         } ;
  202. static DBUTTONL40    d011d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  203.                              554, 263, 599, 286,12, 4, 8,
  204.                             MS_PANELL40 | MS_FRAMEL40,
  205.                             orgSoundwriteOK,
  206.                             0x8012
  207.                         } ;
  208.  
  209. /* orgMesId[1] */
  210.  
  211. static MMIPACKET d012 = {    &orgMesId[1],
  212.                             &orgSubDialogId,
  213.                             &MJ_MSGL40,
  214.                             OFFSET(MSGL40),
  215.                             MS_NONE
  216.                         } ;
  217. static MSGL40    d012d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  218.                              490, 198, 606, 215, 0,15, 8,
  219.                             MS_NONEL40,
  220.                             "毎秒8.6フレーム",
  221.                                1,  12,  12,
  222.                             MS_NONEL40,
  223.                                0,   0
  224.                         } ;
  225.  
  226. /* orgMesId[2] */
  227.  
  228. static MMIPACKET d013 = {    &orgMesId[2],
  229.                             &orgSubDialogId,
  230.                             &MJ_MSGL40,
  231.                             OFFSET(MSGL40),
  232.                             MS_NONE
  233.                         } ;
  234. static MSGL40    d013d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  235.                              490, 219, 605, 236, 0,15, 8,
  236.                             MS_NONEL40,
  237.                             "160×120ドット",
  238.                                1,  12,  12,
  239.                             MS_NONEL40,
  240.                                0,   0
  241.                         } ;
  242.  
  243. /* orgMesId[6] */
  244.  
  245. static MMIPACKET d014 = {    &orgMesId[6],
  246.                             &orgSubDialogId,
  247.                             &MJ_MSGL40,
  248.                             OFFSET(MSGL40),
  249.                             MS_NONE
  250.                         } ;
  251. static MSGL40    d014d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  252.                              489, 240, 562, 257, 0,15, 8,
  253.                             MS_NONEL40,
  254.                             "音声の先送り",
  255.                                1,  12,  12,
  256.                             MS_NONEL40,
  257.                                0,   0
  258.                         } ;
  259.  
  260. /* orgMesId[7] */
  261.  
  262. static MMIPACKET d015 = {    &orgMesId[7],
  263.                             &orgSubDialogId,
  264.                             &MJ_MSGL40,
  265.                             0,
  266.                             MS_NONE
  267.                         } ;
  268. static MSGL40    d015d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  269.                              561, 266, 593, 283, 8,15, 8,
  270.                             MS_NONEL40,
  271.                             "設 定",
  272.                                1,  12,  12,
  273.                             MS_NONEL40,
  274.                                0,   0
  275.                         } ;
  276.  
  277.